<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>顶部</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<style type="text/css">
	@IMPORT url("css/base.css");


</style>

<script type="text/javascript" src="js/jquery-1.8.3.js"></script>
<script type="text/javascript">
$(function(){
	setInterval(function(){
		var mydate = new Date();
		var y = mydate.getFullYear();
		var m = mydate.getMonth() + 1;
		var d = mydate.getDate();
		var h = mydate.getHours();
		var i = mydate.getMinutes();
		var s = mydate.getSeconds();
		var w = mydate.getDay();
		var weeks = new Array('日', '一', '二', '三', '四', '五', '六');
		if (m < 10) m = '0' + m;
		if (d < 10) d = '0' + d;
		if (h < 10) h = '0' + h;
		if (i < 10) i = '0' + i;
		if (s < 10) s = '0' + s;
		var date = y + '年' + m + '月' + d + '日 ' + h + '时' + i + '分' + s + '秒' + ' 星期' + weeks[w];
		$(".main-center-left").html(date); 
	}, 1000);
}); 



	$(function(){
		$(".neck1-center-rights a").mouseover(function(){
			$(this).parent().css("background-color","#ff4500");
		});
		$(".neck1-center-rights a").mouseout(function(){
			$(this).parent().css("background-color","#298eea");
		});
	
	});
	
	$(function(){
		if("${sessionScope.login}"==""){
			$(".main-center-right").css("display","block");
			$(".main-center-right1").css("display","none");
		}else{
			$(".main-center-right").css("display","none");
			$(".main-center-right1").css("display","block");
			$(".infoname").html("${sessionScope.login.name}");
		}
	});
</script>
  </head>
  
  <body>
   <div id="top">
		<div class="main">
			<div class="main-left"></div>
			<div class="main-center">
				<div class="main-center-left"></div>
				<div class="main-center-right">
					<a href="jsp/public/register.jsp">新用户注册</a><a>|</a><a href="#">主机空间</a><a>|</a><a href="#">网站建设</a><a>|</a><a href="#">官方QQ群</a><a>|</a><a href="#" style="color: #c31b10">模板随心换</a>
				</div>
				<div class="main-center-right1">
				<a class="infoname"></a><a href="LoginOutServlet">退出</a><a>|</a><a href="#">主机空间</a><a>|</a><a href="#">网站建设</a><a>|</a><a href="#">官方QQ群</a>
				</div>
			</div>
			<div class="main-right"></div>
		</div>
		<div id="neck">
			<div class="neck-left"></div>
			<div class="neck-center"><img  src="images/300td.png"></div>
			<div class="neck-right"></div>
		</div>
		<div id="neck1">
			<div class="neck1-left"></div>
			<div class="neck1-center">
					<ul>
						<li><a href="jsp/public/first.jsp">论坛首页</a></li>
						<li><a href="jsp/public/board.jsp">所有版块</a></li>
						<li><a href="jsp/public/article.jsp">最新文章</a></li>
						<li><a href="jsp/public/reply.jsp">最新回复</a></li>
						<li><a href="#">论坛下载</a></li>
						<li><a href="#">轻博客下载</a></li>
						<li><a href="#">PHP轻框架</a></li>
					</ul>
	 	</div>
		<div class="neck1-right"></div>
		</div>
   		<div class="body-line-1"></div>
   			
   </div>
  </body>
</html>
